package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

/**
 * 平台用户投诉
 */
@Getter
@Setter
@Document(collection = "platform_user_complaint")
public class PlatformUserComplaint extends EntityBase {
    private String platform;
    private String appId;
    private String appName;
    @Indexed
    private String userId;
    private String openId;
    private String nickName;
    private String userName;
    protected String avatarUrl;
    @Indexed
    private String mobile;
    private String universityId;
    private String universityName;
    /**
     * todo:待处理
     * doing:处理中
     * done:处理完成
     */
    @Indexed
    private String status = "todo";
    /**
     * 投诉详情
     */
    private String detail;
    /**
     * 类型
     */
    private String type;
    /**
     * 金额单位分
     */
    private Integer fee;

    private List<String> imageUrls = new ArrayList<>();
    @Indexed
    private String activityId;
    private String activityName;
    /**
     * 证据链接
     */
    private String evidenceLink;
    /**
     * 来源,
     * home:活动主页
     * pay-home:收款页面
     * orders-list:订单列表
     */
    @Indexed
    private String from = "home";
    /**
     * 访客有新消息
     */
    @Indexed
    private Boolean visitorHasMsg ;
    /**
     * 平台有新消息
     */
    @Indexed
    private Boolean platformHasMsg;
    /**
     * 未读消息数量
     */
    private Long unReadMsgCount;
}
